<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Editor Grid Example</title>
<%@ include file="/common/css_js.jsp"%>
<link id="screenBaseCss" rel="stylesheet" type="text/css" href="<s:url value="/css/screen.css"/>"/>
<script src="<s:url value="/js/ejs/Grid/GridE.js"/>" type="text/javascript"> </script>
<link href="<s:url value="/js/ejs/Styles/vtc.css"/>" rel="stylesheet" type="text/css" />
<style>
a {
	color:black;
	text-decoration:none;
}
a:hover {
	color:black;
	text-decoration:underline;
}
</style>


<script type="text/javascript">

	$(document).ready(function() {
		$("#categoryForm").validate();
	});

	function childOnClick(nodeId, isLeaf){
		//alert("---"+isLeaf+"---");
		if(isLeaf == 1){
			window.top.catForm.location = "categoryLeaf!list.action?no-decorate=0&categoryNodeId="+nodeId+"&categoryId=<s:property value='categoryId'/>";	
		}else if(isLeaf == 'root'){
			//alert("222");
			window.top.catForm.location = 'categoryNode!list.action?no-decorate=0&categoryNodeId='+nodeId+"&categoryId=<s:property value='categoryId'/>";	
		}else{
		//alert("112233331");
			window.top.catForm.location = 'categoryBranch!list.action?no-decorate=0&categoryNodeId='+nodeId+"&categoryId=<s:property value='categoryId'/>";	
		}
	}
</script>
</head>
<body>
<div class="body" style="height:100%;" >
  <div style="width:100%;height:90%;">
    <treegrid Data_Url="category!getTreeGridData.action?no-decorate=0&categoryId=<s:property value='categoryId'/>"> </treegrid>
  </div>
</div>
</body>
</html>
